<?php
require("../../utils/tools.php");
/* 首页数据获取 */
$query_home =  array('users'=>0,'categories'=>0,'tb'=>0,'articles'=>0,'jokes'=>0,'roles'=>0);

$query_home_name = array_keys($query_home);
//SQLTools 批量查询
foreach($query_home_name as $item){
    $query_home[$item]=SQLTools::rowTB($conn,$item);
}
echo json_encode($query_home);
?>